<html>
	<head>
		<title>GASCIAN - admin</title>
		<?php 
		$this->load->view("admin/partial/headerlinks");
		?>
	</head>
	<body>

    <div id="wrapper">
		<?php 
			$this->load->view("admin/partial/navmenu");
		?>
      <div id="page-wrapper">

        <div class="row">
          <div class="col-lg-12">
            <h1>Editorial Board Members</h1>
          </div>
        </div><!-- .row -->

        

        <div class="row">
          <div class="col-lg-12">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> Members List</h3>
              </div>
              <div class="panel-body">
                <div id="morris-chart-area">
                





              <div class="panel-body">
                <div class="table-responsive">
                <?php 
                if(is_array($editorials)){
                ?>
                  <table class="table table-bordered table-hover table-striped tablesorter">
                      <tr>
                        <th>S. No <i class="fa"></i></th>
                        <th>E Mail <i class="fa"></i></th>
                        <th>Name <i class="fa"></i></th>
                        <th>Phone<i class="fa"></i></th>
                        <th>Designation <i class="fa"></i></th>
                        <th>Action <i class="fa"></i></th>
                      </tr>
                      <?php 
                      $memCount=1;
                      foreach ($editorials as $ls){
                      	?>
                      	<tr>
	                        <td><?php echo $memCount++;?></td>
	                        <td><?php echo $ls['email']; ?></td>
	                        <td><?php echo $ls['name']; ?></td>
	                        <td><?php echo $ls['phone']; ?></td>
	                        <td><?php echo $ls['designation']; ?></td>
	                        <td>
	                        	<a type="button" class="btn btn-warning" href="<?php echo base_url()?>admin/editorial/addMember?id=<?php echo $ls['id']; ?>" >Edit</a>
	                        	<a type="button" class="btn btn-danger disabled" href="<?php echo base_url()?>admin/editorial/addMember?id=<?php echo $ls['id']; ?>" >Delete</a>
	                        </td>
	                      </tr>
                      	<?php 
                      }
                      ?>
                  </table>
                  <?php 
                }
                ?>
                <a type="button" class="btn btn-primary" href="<?php echo base_url()?>admin/editorial/addMember?id=0" >Add Member</a>
                </div>
              </div>
                
                
                
                
                
                </div>
              </div>
            </div>
          </div>
        </div> 
        
        </div><!-- /#page-wrapper -->

    </div><!-- /#wrapper -->

	<?php 
		$this->load->view("admin/partial/footerlinks");
	?>
	</body>
</html>
